package edu.sctu.practice.class02.liqing.test12;

/**
 * Created by 123456 on 2015/10/12.
 */
public class Car {
    private int tires;
    private String color;
    private int load;
    public Car(int tires){
        this.tires = tires;
        System.out.println("轮胎个数："+tires);
    }
    public Car( String color){
        this.color = color;
        System.out.println("轮胎颜色："+color);
    }
    public Car(int tires,String color,int load){
        this(tires);
        this.color = color;
        this.load= load;
        System.out.println("轮胎颜色："+color);
        System.out.println("汽车重量为："+load);
    }
     public  void upSpeed(){
    System.out.println("车正在加速");
}
    public  void downSpeed(){
        System.out.println("车正在减速");
    }
    public  void stop(){
        System.out.println("车已经停止了");
    }


}
